const Router = require('koa-router');
const router = new Router();
const {db, QueryTypes} = require("../../models/db");

router.post('/deliver/getPrintName', async ctx => {
    let tenantId = ctx.user.tenantId;
    let list = await db.models['setPrint'].findAll({
        where: {
            tenantId: tenantId
        }
    })
    return ctx.suc('', list)
})


module.exports = router;
